home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C source text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 6e 65 72 | 2e 62 62 6e 70 6c 61 6e |news.ner|.bbnplan|
|00000030| 65 74 2e 6e 65 74 21 61 | 72 63 6f 21 75 73 65 6e |et.net!a|rco!usen|
|00000040| 65 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 4c |et.From:| Brian L|
|00000050| 65 61 63 68 20 3c 6c 61 | 73 62 66 6c 3e 0a 53 75 |each <la|sbfl>.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 74 72 6f 75 62 |bject: R|e: troub|
|00000070| 6c 65 20 77 69 74 68 20 | 63 6f 6d 6d 61 6e 64 20 |le with |command |
|00000080| 6c 69 6e 65 20 61 72 67 | 73 2c 20 6e 65 65 64 20 |line arg|s, need |
|00000090| 68 65 6c 70 0a 58 2d 4e | 6e 74 70 2d 50 6f 73 74 |help.X-N|ntp-Post|
|000000a0| 69 6e 67 2d 48 6f 73 74 | 3a 20 31 33 36 2e 32 32 |ing-Host|: 136.22|
|000000b0| 36 2e 31 31 36 2e 31 0a | 43 6f 6e 74 65 6e 74 2d |6.116.1.|Content-|
|000000c0| 54 79 70 65 3a 20 74 65 | 78 74 2f 70 6c 61 69 6e |Type: te|xt/plain|
|000000d0| 3b 20 63 68 61 72 73 65 | 74 3d 75 73 2d 61 73 63 |; charse|t=us-asc|
|000000e0| 69 69 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |ii.Messa|ge-ID: <|
|000000f0| 44 6e 36 76 34 34 2e 33 | 7a 76 40 6e 65 77 73 2e |Dn6v44.3|zv@news.|
|00000100| 61 72 63 6f 2e 63 6f 6d | 3e 0a 54 6f 3a 20 74 68 |arco.com|>.To: th|
|00000110| 65 63 72 6f 77 40 69 63 | 6f 6e 6e 2e 6e 65 74 0a |ecrow@ic|onn.net.|
|00000120| 53 65 6e 64 65 72 3a 20 | 75 73 65 6e 65 74 40 6e |Sender: |usenet@n|
|00000130| 65 77 73 2e 61 72 63 6f | 2e 63 6f 6d 0a 43 6f 6e |ews.arco|.com.Con|
|00000140| 74 65 6e 74 2d 54 72 61 | 6e 73 66 65 72 2d 45 6e |tent-Tra|nsfer-En|
|00000150| 63 6f 64 69 6e 67 3a 20 | 37 62 69 74 0a 4f 72 67 |coding: |7bit.Org|
|00000160| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 41 52 43 4f 20 |anizatio|n: ARCO |
|00000170| 4f 69 6c 20 25 20 47 61 | 73 20 43 6f 6d 70 61 6e |Oil % Ga|s Compan|
|00000180| 79 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 34 |y.Refere|nces: <4|
|00000190| 67 38 35 37 70 24 6f 6d | 66 40 6e 65 77 73 2e 69 |g857p$om|f@news.i|
|000001a0| 63 6f 6e 6e 2e 6e 65 74 | 3e 0a 4d 69 6d 65 2d 56 |conn.net|>.Mime-V|
|000001b0| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 44 61 74 65 |ersion: |1.0.Date|
|000001c0| 3a 20 54 68 75 2c 20 32 | 32 20 46 65 62 20 31 39 |: Thu, 2|2 Feb 19|
|000001d0| 39 36 20 31 37 3a 35 35 | 3a 31 35 20 47 4d 54 0a |96 17:55|:15 GMT.|
|000001e0| 58 2d 4d 61 69 6c 65 72 | 3a 20 4d 6f 7a 69 6c 6c |X-Mailer|: Mozill|
|000001f0| 61 20 31 2e 31 32 20 28 | 58 31 31 3b 20 49 3b 20 |a 1.12 (|X11; I; |
|00000200| 48 50 2d 55 58 20 41 2e | 30 39 2e 30 35 20 39 30 |HP-UX A.|09.05 90|
|00000210| 30 30 2f 37 35 35 29 0a | 58 2d 55 72 6c 3a 20 6e |00/755).|X-Url: n|
|00000220| 65 77 73 3a 34 67 38 35 | 37 70 24 6f 6d 66 40 6e |ews:4g85|7p$omf@n|
|00000230| 65 77 73 2e 69 63 6f 6e | 6e 2e 6e 65 74 0a 0a 74 |ews.icon|n.net..t|
|00000240| 68 65 63 72 6f 77 40 69 | 63 6f 6e 6e 2e 6e 65 74 |hecrow@i|conn.net|
|00000250| 20 28 54 68 65 20 43 72 | 6f 77 29 20 77 72 6f 74 | (The Cr|ow) wrot|
|00000260| 65 3a 0a 3e 48 65 79 2c | 20 49 20 68 61 76 65 20 |e:.>Hey,| I have |
|00000270| 61 20 70 72 6f 67 72 61 | 6d 20 74 68 61 74 20 68 |a progra|m that h|
|00000280| 61 73 20 74 68 72 65 65 | 20 73 74 72 69 6e 67 73 |as three| strings|
|00000290| 20 64 65 66 69 6e 65 64 | 20 61 73 20 73 75 63 68 | defined| as such|
|000002a0| 0a 3e 0a 3e 63 68 61 72 | 20 6b 65 79 5b 38 30 5d |.>.>char| key[80]|
|000002b0| 3b 0a 3e 63 68 61 72 20 | 69 66 6e 5b 31 32 5d 3b |;.>char |ifn[12];|
|000002c0| 0a 3e 63 68 61 72 20 65 | 64 5b 31 5d 3b 0a 3e 0a |.>char e|d[1];.>.|
|000002d0| 3e 54 68 65 6e 20 49 20 | 72 65 61 64 20 69 6e 20 |>Then I |read in |
|000002e0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|000002f0| 20 61 72 67 75 6d 65 6e | 74 73 20 69 6e 20 74 68 | argumen|ts in th|
|00000300| 65 20 6d 61 69 6e 20 66 | 75 6e 63 74 69 6f 6e 20 |e main f|unction |
|00000310| 6c 69 6b 65 20 73 6f 3a | 0a 3e 0a 3e 6d 61 69 6e |like so:|.>.>main|
|00000320| 28 69 6e 74 20 61 72 67 | 63 2c 20 63 68 61 72 2a |(int arg|c, char*|
|00000330| 20 61 72 67 76 5b 5d 29 | 20 20 7b 0a 3e 62 6c 61 | argv[])| {.>bla|
|00000340| 62 6c 61 62 6c 61 0a 3e | 7d 0a 3e 0a 3e 74 68 65 |blabla.>|}.>.>the|
|00000350| 6e 20 69 6e 73 69 64 65 | 20 74 68 65 20 6d 61 69 |n inside| the mai|
|00000360| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 49 20 74 72 79 |n functi|on I try|
|00000370| 20 74 6f 20 64 6f 20 74 | 68 69 73 0a 3e 0a 3e 69 | to do t|his.>.>i|
|00000380| 66 6e 20 3d 20 61 72 67 | 76 5b 31 5d 3b 0a 3e 65 |fn = arg|v[1];.>e|
|00000390| 64 20 3d 20 61 72 67 76 | 5b 32 5d 3b 0a 3e 6b 65 |d = argv|[2];.>ke|
|000003a0| 79 20 3d 20 61 72 67 76 | 5b 33 5d 3b 0a 3e 0a 3e |y = argv|[3];.>.>|
|000003b0| 0a 3e 49 20 67 65 74 20 | 61 6e 20 65 72 72 6f 72 |.>I get |an error|
|000003c0| 20 61 62 6f 75 74 20 4c | 76 61 6c 75 65 73 20 69 | about L|values i|
|000003d0| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 6d 61 69 6e 2e |n functi|on main.|
|000003e0| 20 49 20 68 61 76 65 20 | 74 72 69 65 64 20 61 64 | I have |tried ad|
|000003f0| 64 69 6e 67 20 6c 69 74 | 74 6c 65 20 0a 3e 73 74 |ding lit|tle .>st|
|00000400| 61 72 73 20 61 6c 6c 20 | 6f 76 65 72 20 74 68 65 |ars all |over the|
|00000410| 20 70 6c 61 63 65 20 61 | 6e 64 20 64 69 66 66 65 | place a|nd diffe|
|00000420| 72 65 6e 74 20 63 6f 6d | 62 69 6e 61 74 69 6f 6e |rent com|bination|
|00000430| 73 20 62 75 74 20 49 20 | 65 69 74 68 65 72 20 67 |s but I |either g|
|00000440| 65 74 20 74 68 65 20 4c | 76 61 6c 75 65 0a 3e 65 |et the L|value.>e|
|00000450| 72 72 6f 72 20 6f 72 20 | 73 6f 6d 65 74 68 69 6e |rror or |somethin|
|00000460| 67 20 61 62 6f 75 74 20 | 6e 65 61 72 20 70 6f 69 |g about |near poi|
|00000470| 6e 74 65 72 73 2e 20 20 | 49 20 6a 75 73 74 20 77 |nters. |I just w|
|00000480| 61 6e 74 20 74 6f 20 64 | 75 6d 70 20 74 68 65 20 |ant to d|ump the |
|00000490| 63 6f 6d 6d 61 6e 64 20 | 6c 69 6e 65 0a 3e 61 72 |command |line.>ar|
|000004a0| 67 75 6d 65 6e 74 73 20 | 69 6e 20 74 68 65 20 73 |guments |in the s|
|000004b0| 74 72 69 6e 67 73 2e 20 | 48 6f 77 20 64 6f 20 49 |trings. |How do I|
|000004c0| 20 64 6f 3f 0a 3e 0a 3e | 2d 2d 20 0a 3e 54 68 65 | do?.>.>|-- .>The|
|000004d0| 20 43 72 6f 77 20 2d 20 | 74 68 65 63 72 6f 77 40 | Crow - |thecrow@|
|000004e0| 69 63 6f 6e 6e 2e 6e 65 | 74 0a 3e 22 49 74 20 63 |iconn.ne|t.>"It c|
|000004f0| 61 6e 27 74 20 72 61 69 | 6e 20 61 6c 6c 20 74 68 |an't rai|n all th|
|00000500| 65 20 74 69 6d 65 22 0a | 3e 0a 3e 0a 44 65 61 72 |e time".|>.>.Dear|
|00000510| 20 43 72 6f 77 2c 0a 0a | 49 74 20 6d 69 67 68 74 | Crow,..|It might|
|00000520| 20 62 65 20 68 65 6c 70 | 66 75 6c 20 69 66 20 79 | be help|ful if y|
|00000530| 6f 75 20 72 65 63 65 69 | 76 65 64 20 73 6f 6d 65 |ou recei|ved some|
|00000540| 20 62 61 73 69 63 20 69 | 6e 73 74 72 75 63 74 69 | basic i|nstructi|
|00000550| 6f 6e 20 6f 6e 20 43 2f | 43 2b 2b 20 65 69 74 68 |on on C/|C++ eith|
|00000560| 65 72 0a 74 68 72 6f 75 | 67 68 20 6c 65 73 73 6f |er.throu|gh lesso|
|00000570| 6e 73 20 6f 72 20 61 20 | 62 6f 6f 6b 2e 20 27 61 |ns or a |book. 'a|
|00000580| 72 67 76 5b 5d 27 20 69 | 73 20 61 6e 20 61 72 72 |rgv[]' i|s an arr|
|00000590| 61 79 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 20 |ay of ch|aracter |
|000005a0| 70 6f 69 6e 74 65 72 73 | 2c 0a 77 68 69 63 68 20 |pointers|,.which |
|000005b0| 6d 65 61 6e 73 20 74 6f | 20 64 6f 20 74 68 65 20 |means to| do the |
|000005c0| 61 73 73 69 67 6e 6d 65 | 6e 74 20 2c 20 69 66 6e |assignme|nt , ifn|
|000005d0| 2c 20 65 64 2c 20 61 6e | 64 20 6b 65 79 20 6e 65 |, ed, an|d key ne|
|000005e0| 65 64 20 61 6c 73 6f 20 | 62 65 20 63 68 61 72 61 |ed also |be chara|
|000005f0| 63 74 65 72 0a 70 6f 69 | 6e 74 65 72 73 2c 20 69 |cter.poi|nters, i|
|00000600| 65 3a 0a 20 20 63 68 61 | 72 20 2a 69 66 6e 3b 0a |e:. cha|r *ifn;.|
|00000610| 20 20 63 68 61 72 20 2a | 6b 65 79 3b 0a 20 20 63 | char *|key;. c|
|00000620| 68 61 72 20 2a 65 64 3b | 0a 0a 43 20 61 6e 64 20 |har *ed;|..C and |
|00000630| 43 2b 2b 20 68 61 76 65 | 20 6e 6f 20 63 6f 6e 63 |C++ have| no conc|
|00000640| 65 70 74 20 6f 66 20 73 | 74 72 69 6e 67 73 2e 2e |ept of s|trings..|
|00000650| 2e 20 79 6f 75 20 61 72 | 65 20 66 72 65 65 20 74 |. you ar|e free t|
|00000660| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 74 68 65 6d |o implem|ent them|
|00000670| 20 61 73 20 61 20 0a 63 | 6c 61 73 73 2e 20 49 66 | as a .c|lass. If|
|00000680| 20 79 6f 75 20 72 65 61 | 6c 6c 79 20 64 65 73 69 | you rea|lly desi|
|00000690| 72 65 20 74 6f 20 63 6f | 70 79 20 74 68 65 20 73 |re to co|py the s|
|000006a0| 74 72 69 6e 67 73 2c 20 | 61 6c 6c 6f 63 61 74 65 |trings, |allocate|
|000006b0| 20 62 75 66 66 65 72 20 | 73 70 61 63 65 20 61 6e | buffer |space an|
|000006c0| 64 0a 75 73 65 20 74 68 | 65 20 73 74 72 63 70 79 |d.use th|e strcpy|
|000006d0| 20 66 75 6e 63 74 69 6f | 6e 2e 0a 0a 2d 42 72 69 | functio|n...-Bri|
|000006e0| 61 6e 20 3a 2d 29 0a 0a | 2d 2d 20 0a 42 72 69 61 |an :-)..|-- .Bria|
|000006f0| 6e 20 46 2e 20 4c 65 61 | 63 68 0a 53 72 2e 20 53 |n F. Lea|ch.Sr. S|
|00000700| 79 73 74 65 6d 73 20 41 | 6e 61 6c 79 73 74 0a 6c |ystems A|nalyst.l|
|00000710| 61 73 62 66 6c 40 61 61 | 69 2e 61 72 63 6f 2e 63 |asbfl@aa|i.arco.c|
|00000720| 6f 6d 0a 0a 54 65 6c 65 | 70 68 6f 6e 65 3a 09 28 |om..Tele|phone:.(|
|00000730| 39 30 37 29 20 32 36 33 | 2d 34 38 36 30 0a 46 41 |907) 263|-4860.FA|
|00000740| 58 3a 09 09 28 39 30 37 | 29 20 32 36 35 2d 36 32 |X:..(907|) 265-62|
|00000750| 39 38 0a 0a 41 52 43 4f | 20 41 6c 61 73 6b 61 2c |98..ARCO| Alaska,|
|00000760| 20 49 6e 63 2e 0a 41 54 | 4f 2d 31 36 35 36 0a 50 | Inc..AT|O-1656.P|
|00000770| 2e 4f 2e 20 42 6f 78 20 | 31 30 30 33 36 30 0a 41 |.O. Box |100360.A|
|00000780| 6e 63 68 6f 72 61 67 65 | 2c 20 41 4b 20 39 39 35 |nchorage|, AK 995|
|00000790| 31 30 2d 30 33 36 30 0a | 0a |10-0360.|. |
+--------+-------------------------+-------------------------+--------+--------+